package com.baizhi.cmfz.controller;

import com.baizhi.cmfz.service.AlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@RequestMapping("/album")
@Controller
public class AlbumController {

    @Autowired
    private AlbumService albumService;

    @RequestMapping("/showPageAlbum")
    @ResponseBody
    public Map showPageAlbum(int page, int limit){
        return albumService.showPageAlbum(page,limit);
    }
}
